<?php
include("../../config.php");
include(FILE_ROOT."/common/db.php");
include(FILE_ROOT."/common/user_client.php");
include(FILE_ROOT."/common/common_function.php");

if(!checkIsLogin()){
    echo '{"status":-2,"message":"没有权限！","data":""}';return;
}
$users = new UserClient();
$who=empty($_POST['who'])?(empty($_GET['who'])?"":$_GET['who']):$_POST['who'];
if(empty($who))
	echo $users -> getUserInfo($_COOKIE["CCUSER"]);
else
{
	$uid=empty($_POST['uid'])?$_GET['uid']:$_POST['uid'];
	//echo $uid;die;
	echo $users ->getUserInfoByuid($uid);
}
	
